# -*- coding:utf-8 -*-
import yaml
from handle.handle_path import ELEMENTGDIR  # 导入元素配置路径

def login_yaml_handle():
    """
    处理登录的yaml
    :return:
    """
    with open(ELEMENTGDIR + "/login.yaml", "r", encoding='utf-8') as ly:
        ele = yaml.safe_load(ly)
        return ele

def logout_yaml_handle():
    """
    处理推出的yaml
    :return:
    """
    with open(ELEMENTGDIR + "/logout.yaml", "r", encoding='utf-8') as ly:
        ele = yaml.safe_load(ly)
        return ele

def create_project_yaml_handle():
    """
    处理项目管理yaml
    :return:
    """
    with open(ELEMENTGDIR + "/project_manage.yaml", "r") as ly:
        ele = yaml.safe_load(ly)
        return ele

def park_manage_yaml_handle():
    """
    处理园区管理yaml
    :return:
    """
    with open(ELEMENTGDIR + "/park_manage.yaml", "r") as ly:
        ele = yaml.safe_load(ly)
        return ele

def attendance_manage_yaml_handle():
    """
    处理园区管理yaml
    :return:
    """
    with open(ELEMENTGDIR + "/attendance_manage.yaml", "r") as ly:
        ele = yaml.safe_load(ly)
        return ele


if __name__ == "__main__":
    print(attendance_manage_yaml_handle())

